<template>
  <div>
    作者2

  </div>
</template>

<script>
  export default {
    name: 'Writer2',
    data() {
        return{
            tableData: [],
            msg: "",
            total: 3,
            pagesize: 0,
        }
    },
    methods: {
        page(currentPage){
            alert(currentPage)
        }
    },
    created() {
        const _this = this;
        this.$axios.get("http://localhost:8092/book/list/1/10")
        .then(function(resp) {
            // _this.msg = resp.data.msg;
            _this.tableData = resp.data.content;
            _this.total = resp.data.totalElements;
            _this.pagesize = resp.data.pagesize;
        });
    }
  };
</script>

<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }
  
  .el-aside {
    color: #333;
  }
</style>
